package com.mixsmart.commonweb.upload.classify;

import org.springframework.stereotype.Component;

import com.mixsmart.commonweb.upload.ClassifyModel;
import com.mixsmart.utils.StringUtils;


/**
 * 按附件类型归类
 * @author lmq
 * @version 1.0
 * @since JDK1.6以上
 * <br />
 * 2016年7月22日
 */
@Component
public class AttachmentTypeClassify extends AbstractUploadClassify {

	@Override
	public String getName() {
		return "att_type";
	}

	@Override
	protected String classify(ClassifyModel classifyModel) {
		if(null != classifyModel && 
				StringUtils.isNotEmpty(classifyModel.getAttType())) {
			return classifyModel.getAttType();
		}
		return null;
	}

	
}
